
import { storeList } from '@/mock/store/stores'
import { orderList } from '@/mock/store/orders'

// 模拟API延时
const mockApi = (data) => {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve({
        code: 200,
        message: '成功',
        data: data
      })
    }, 500) // 500ms 延迟
  })
}

export function getStores() {
  return mockApi(storeList)
}

export function getOrders() {
  return mockApi(orderList)
} 